<?php

class ShoeController extends Controller{

var $name ='shoe';

var $uses=array("Shoe");




function index(){

     $this ->set('shoe', $this);  
     
     
     $boty=$this->Shoe->find("all");
     $this ->set('bot', $boty);
  //  debug($boty);
     }
function detail($id)
  {
     if (is_numeric($id)) {
      
        $conds=array('Shoe.id'=>$id);
        $result=$this->Shoe->find('all',array('conditions'=>$conds)); 
         debug($result);
        $this->set('boty',$result); 
    } else {
        echo "not numeric";
    }
     
  }
  function add()
  {debug($this->data);
  $this->Shoe->save($this->data);
  }
}

?>